package com.eascs.o2o.loan.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name="loan_wechat")
public class LoanWeChatEntity  implements Serializable{

	private static final long serialVersionUID = -8645961154521680036L;
	
	@Column(name = "id")
	@Id
	private String id;
	
	/**
	 * 借款人姓名
	 * */
	private String uname;
	
	/**
	 * 借款人身份证号
	 * */
	@Column(name = "id_card")
	private String idCard;
	
	/**
	 * 借款人手机号
	 * */
	private String mobile;
	
	/**
	 * 微信公众号的唯一标识
	 * */
	private String openid;
	
	/**
	 * 创建时间
	 * */
	@Column(name = "create_time")
	@Temporal(TemporalType.TIMESTAMP)
	private Date createTime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUname() {
		return uname;
	}

	public void setUname(String uname) {
		this.uname = uname;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "LoanWeChatEntity [id=" + id + ", uname=" + uname + ", idCard=" + idCard + ", mobile=" + mobile
				+ ", openid=" + openid + ", createTime=" + createTime + "]";
	}
	
	
}
